
module.exports = {
    pages: {
        "index": {
            entry: "src/main.js",
            template: "public/index.html",
            filename: "index.html"
        }
    },
    lintOnSave: false,
    devServer: {
        open: true,
        openPage: 'index.html',
        port: 9100,
        // 单个服务器配置
        // proxy: "http://www.shuiyue.info:12300",
        proxy: {
            // 自定义的一个代理字段
            // http://localhost:9000/apis/user/code
            // => http://www.shuiyue.info:12300/apis/user/code
            // => http://www.shuiyue.info:12300/user/code
            '/apis': {
                target: "http://www.shuiyue.info:12300",
                pathRewrite: {'/apis': ""}
            }
        }
    }
}